﻿using System;
using System.Runtime.InteropServices;


namespace Voize
{
    //Methods needed to move the window with mouse. Also drop shadow address
    internal static class NativeHook
    {
        internal const int DROPSHADOW = 0x00020000;

        #region Invokes
        [DllImport("user32.dll")]
        [return: MarshalAs(UnmanagedType.I4)]
        internal static extern int SendMessage(IntPtr hWnd,[param: MarshalAs(UnmanagedType.U4)]
                                                            uint Msg,
                                                            [param: MarshalAs(UnmanagedType.U4)]
                                                            uint wParam,
                                                            [param: MarshalAs(UnmanagedType.I4)]int lParam);

        [DllImport("user32.dll")]
        [return: MarshalAs(UnmanagedType.Bool)]
        internal static extern bool ReleaseCapture();

        internal const uint WM_NCLBUTTONDOWN = 0xA1; // 161
        internal const uint HTCAPTION = 2;
        #endregion


    }
}
